package com.ywu.application.standard.demandManagement.data;

import com.ywu.application.standard.demandManagement.dto.YwuDemandManageDto;
import com.ywu.application.standard.demandManagement.entity.YwuDemandManageEntity;
import com.ywu.application.standard.demandManagement.entity.YwuDemandManageProjectEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface YwuDemandManageRepository {
    void insertDemand(@Param("model")YwuDemandManageEntity entity);

    void updateDemand(@Param("model")YwuDemandManageEntity entity);

    void deleteDemand(@Param("model")YwuDemandManageEntity entity);

    void deleteDemandByParentIr(@Param("model")YwuDemandManageEntity entity);

    YwuDemandManageEntity getEntity(@Param("model")YwuDemandManageEntity entity);

    List<YwuDemandManageEntity> getEntityList(@Param("model") YwuDemandManageEntity entity);

    int queryListCount(@Param("model") YwuDemandManageDto dto);

    List<YwuDemandManageEntity> queryList(@Param("model") YwuDemandManageDto dto);

    void deleteDemandByProjectId(@Param("model") YwuDemandManageProjectEntity delete);
}
